package org.sfnelson.sk.client.data;

import java.io.Serializable;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Loot implements Serializable {

	private static final long serialVersionUID = 8834952506376164247L;

	@SuppressWarnings("unused")
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String encodedKey;

    @Persistent
	public Integer id;

	public Loot(int id) {
		this.id = id;
	}

	public Loot() {}

	public int getId() {
		return id;
	}

	@Override
	public String toString() {
		return "loot: " + id;
	}
}
